﻿using System.Collections.Generic;
using Accountant.MySerializer;

namespace Accountant.DataModel
{
  public interface IEntity<TContext>
    where TContext : DbContext
  {
    TContext Context { get; set; }
    void AbsorbGraphIntoContext(TContext context, HashSet<object> visited);
//    void Attach(TContext context, AttachContext attach);
    void Detach(TContext context);
  }
}